<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Whisper: CRandEmbeddingEngine Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Whisper
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="#pri-static-attribs">Static Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">CRandEmbeddingEngine Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="CRandEmbeddingEngine" --><!-- doxytag: inherits="CLSBEmbeddingEngine" -->
<p>implementation of the lsb embedding where random lsb's are taken to hide the data bits  
 <a href="classCRandEmbeddingEngine.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="rand__embedding__engine_8h_source.html">rand_embedding_engine.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for CRandEmbeddingEngine:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classCRandEmbeddingEngine.png" usemap="#CRandEmbeddingEngine_map" alt=""/>
  <map id="CRandEmbeddingEngine_map" name="CRandEmbeddingEngine_map">
<area href="classCLSBEmbeddingEngine.html" title="implementation of the LSB embedding algorithm." alt="CLSBEmbeddingEngine" shape="rect" coords="0,56,151,80"/>
<area href="classIEmbeddingEngine.html" title="Embedding engine base class." alt="IEmbeddingEngine" shape="rect" coords="0,0,151,24"/>
</map>
 </div></div>

<p><a href="classCRandEmbeddingEngine-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRandEmbeddingEngine.html#a9de3fadd914e4c12a2faedd2d14bf864">CRandEmbeddingEngine</a> (<a class="el" href="classIBitSource.html">IBitSource</a> *pBitSource)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRandEmbeddingEngine.html#a2edc661cd21bd8c5c1ffe088c3f1f7cb">~CRandEmbeddingEngine</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRandEmbeddingEngine.html#a96e54e0cb255a0cc5715ad7199256c76">getIniSectionName</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">get the abbreviation for the properties reader  <a href="#a96e54e0cb255a0cc5715ad7199256c76"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRandEmbeddingEngine.html#a54803d6a4f5d537ca5065271623ab4d5">embedIntoSamples</a> (int8_t *pSamples, unsigned int pCount, unsigned int pLeak)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">hook call for glue code  <a href="#a54803d6a4f5d537ca5065271623ab4d5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRandEmbeddingEngine.html#ad71f0b7abb7d3a4f00fbed8e9ae1330f">embedIntoSamples</a> (uint8_t *pSamples, unsigned int pCount, unsigned int pLeak)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRandEmbeddingEngine.html#aac2dc51c8a5c42fb3b013fb265ea546b">embedIntoSamples</a> (int16_t *pSamples, unsigned int pCount, unsigned int pLeak)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRandEmbeddingEngine.html#a1168da3c69053df590dc9f0c08c4f16d">embedIntoSamples</a> (uint16_t *pSamples, unsigned int pCount, unsigned int pLeak)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRandEmbeddingEngine.html#ad2f2ad1c4af1efd19d7f9f324e5068b4">extractFromSamples</a> (int8_t *pSamples, unsigned int pCount, unsigned int pLeak, unsigned int pInBuffer)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">hook call for glue code  <a href="#ad2f2ad1c4af1efd19d7f9f324e5068b4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRandEmbeddingEngine.html#a64761d9c4036823d4a38e8e054c7acd9">extractFromSamples</a> (uint8_t *pSamples, unsigned int pCount, unsigned int pLeak, unsigned int pInBuffer)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRandEmbeddingEngine.html#a68c5bc5b00170e6ac949b5fb7b23321d">extractFromSamples</a> (int16_t *pSamples, unsigned int pCount, unsigned int pLeak, unsigned int pInBuffer)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRandEmbeddingEngine.html#af0b434b1ee99a668bf715f3dde97dcbe">extractFromSamples</a> (uint16_t *pSamples, unsigned int pCount, unsigned int pLeak, unsigned int pInBuffer)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRandEmbeddingEngine.html#ad7153a1344e4fca0b855851e0c346596">changeSettings</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRandEmbeddingEngine.html#a1241abf0524e9337ba9488a1a6598717">CRandEmbeddingEngine</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRandEmbeddingEngine.html#ae7cf6a60c09d4790a33ef289b2a6d642">CRandEmbeddingEngine</a> (const <a class="el" href="classCRandEmbeddingEngine.html">CRandEmbeddingEngine</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCRandEmbeddingEngine.html">CRandEmbeddingEngine</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRandEmbeddingEngine.html#a587fe0bad241ff43d92acab118def69d">operator=</a> (const <a class="el" href="classCRandEmbeddingEngine.html">CRandEmbeddingEngine</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRandEmbeddingEngine.html#af863b5d117e3ad554d714e24892e33e0">setProperties</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRandEmbeddingEngine.html#ac4b667ad17352731894fc8b5080c7750">initPrng</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRandEmbeddingEngine.html#af4b485d99db56b398b850caa2eefab41">sampleToProcess</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCLSBEmbeddingEngine.html">CLSBEmbeddingEngine</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRandEmbeddingEngine.html#ab09f2cfec754c8d413cc8721e4d7a97a">mEmbeddingEngine</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCLcg.html">CLcg</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRandEmbeddingEngine.html#a56f7c37c06f97bdad61a24b2a45b5651">mRandom</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRandEmbeddingEngine.html#a821a6627d59f284960d81514f8e7d686">mSeed</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRandEmbeddingEngine.html#aaa953369788426b87458f9da4ae4d088">mMultiplier</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRandEmbeddingEngine.html#a9b6328e97066c6848dbe8d82b53ea0b2">mIncrement</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRandEmbeddingEngine.html#aed96142234beb18c5d871c663549697d">mModulo</a></td></tr>
<tr><td colspan="2"><h2><a name="pri-static-attribs"></a>
Static Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRandEmbeddingEngine.html#afc64519350828e8ab0d31ca4940f302c">sIniSectionName</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>implementation of the lsb embedding where random lsb's are taken to hide the data bits </p>
<dl class="author"><dt><b>Author:</b></dt><dd>mnutzinger</dd></dl>
<p>this class is implemented as a decorator of <a class="el" href="classCLSBEmbeddingEngine.html" title="implementation of the LSB embedding algorithm.">CLSBEmbeddingEngine</a> in order to not re-implement the lsb stuff and just concentrate on the random stuff as well as the interpretation of the config file (for random seed) </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a9de3fadd914e4c12a2faedd2d14bf864"></a><!-- doxytag: member="CRandEmbeddingEngine::CRandEmbeddingEngine" ref="a9de3fadd914e4c12a2faedd2d14bf864" args="(IBitSource *pBitSource)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CRandEmbeddingEngine::CRandEmbeddingEngine </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classIBitSource.html">IBitSource</a> *&#160;</td>
          <td class="paramname"><em>pBitSource</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a2edc661cd21bd8c5c1ffe088c3f1f7cb"></a><!-- doxytag: member="CRandEmbeddingEngine::~CRandEmbeddingEngine" ref="a2edc661cd21bd8c5c1ffe088c3f1f7cb" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CRandEmbeddingEngine::~CRandEmbeddingEngine </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a1241abf0524e9337ba9488a1a6598717"></a><!-- doxytag: member="CRandEmbeddingEngine::CRandEmbeddingEngine" ref="a1241abf0524e9337ba9488a1a6598717" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CRandEmbeddingEngine::CRandEmbeddingEngine </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ae7cf6a60c09d4790a33ef289b2a6d642"></a><!-- doxytag: member="CRandEmbeddingEngine::CRandEmbeddingEngine" ref="ae7cf6a60c09d4790a33ef289b2a6d642" args="(const CRandEmbeddingEngine &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CRandEmbeddingEngine::CRandEmbeddingEngine </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCRandEmbeddingEngine.html">CRandEmbeddingEngine</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ad7153a1344e4fca0b855851e0c346596"></a><!-- doxytag: member="CRandEmbeddingEngine::changeSettings" ref="ad7153a1344e4fca0b855851e0c346596" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CRandEmbeddingEngine::changeSettings </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>called by the protocol engine upon settings change (e.g. change of embedding parameters) </p>

<p>Reimplemented from <a class="el" href="classCLSBEmbeddingEngine.html#aca6150436ba357982b39ab7a56e6b0b7">CLSBEmbeddingEngine</a>.</p>

</div>
</div>
<a class="anchor" id="a54803d6a4f5d537ca5065271623ab4d5"></a><!-- doxytag: member="CRandEmbeddingEngine::embedIntoSamples" ref="a54803d6a4f5d537ca5065271623ab4d5" args="(int8_t *pSamples, unsigned int pCount, unsigned int pLeak)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CRandEmbeddingEngine::embedIntoSamples </td>
          <td>(</td>
          <td class="paramtype">int8_t *&#160;</td>
          <td class="paramname"><em>pSamples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pCount</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pLeak</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>hook call for glue code </p>
<p>called by the voip phone application to embed data into the sample before sending a packet </p>
<dl class="note"><dt><b>Note:</b></dt><dd>this implicitly reads the data to be embedded from the <a class="el" href="classIStegIO.html" title="abstraction layer of a steg payload data source and sink">IStegIO</a></dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pSamples</td><td>samples to be modified </td></tr>
    <tr><td class="paramname">pCount</td><td>number of samples </td></tr>
    <tr><td class="paramname">pLeak</td><td>number of samples not used between last and current call</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>&gt;0 for success, 0 for EOF and &lt;0 for an error </dd></dl>

<p>Reimplemented from <a class="el" href="classCLSBEmbeddingEngine.html#a4d508780f5f727e820baa98a5da1fa97">CLSBEmbeddingEngine</a>.</p>

</div>
</div>
<a class="anchor" id="ad71f0b7abb7d3a4f00fbed8e9ae1330f"></a><!-- doxytag: member="CRandEmbeddingEngine::embedIntoSamples" ref="ad71f0b7abb7d3a4f00fbed8e9ae1330f" args="(uint8_t *pSamples, unsigned int pCount, unsigned int pLeak)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CRandEmbeddingEngine::embedIntoSamples </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>pSamples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pCount</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pLeak</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented from <a class="el" href="classCLSBEmbeddingEngine.html#ae132792ad4cf59e3a0b966f92fd4b43b">CLSBEmbeddingEngine</a>.</p>

</div>
</div>
<a class="anchor" id="aac2dc51c8a5c42fb3b013fb265ea546b"></a><!-- doxytag: member="CRandEmbeddingEngine::embedIntoSamples" ref="aac2dc51c8a5c42fb3b013fb265ea546b" args="(int16_t *pSamples, unsigned int pCount, unsigned int pLeak)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CRandEmbeddingEngine::embedIntoSamples </td>
          <td>(</td>
          <td class="paramtype">int16_t *&#160;</td>
          <td class="paramname"><em>pSamples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pCount</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pLeak</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented from <a class="el" href="classCLSBEmbeddingEngine.html#a53aafd5283ecaddd90c0763eeab89cf9">CLSBEmbeddingEngine</a>.</p>

</div>
</div>
<a class="anchor" id="a1168da3c69053df590dc9f0c08c4f16d"></a><!-- doxytag: member="CRandEmbeddingEngine::embedIntoSamples" ref="a1168da3c69053df590dc9f0c08c4f16d" args="(uint16_t *pSamples, unsigned int pCount, unsigned int pLeak)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CRandEmbeddingEngine::embedIntoSamples </td>
          <td>(</td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>pSamples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pCount</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pLeak</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented from <a class="el" href="classCLSBEmbeddingEngine.html#af6e8a395a148d9847721654e6540efe2">CLSBEmbeddingEngine</a>.</p>

</div>
</div>
<a class="anchor" id="ad2f2ad1c4af1efd19d7f9f324e5068b4"></a><!-- doxytag: member="CRandEmbeddingEngine::extractFromSamples" ref="ad2f2ad1c4af1efd19d7f9f324e5068b4" args="(int8_t *pSamples, unsigned int pCount, unsigned int pLeak, unsigned int pInBuffer)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CRandEmbeddingEngine::extractFromSamples </td>
          <td>(</td>
          <td class="paramtype">int8_t *&#160;</td>
          <td class="paramname"><em>pSamples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pCount</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pLeak</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pInBuffer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>hook call for glue code </p>
<p>called by the voip phone application to extract data from the sample after receiving a packet </p>
<dl class="note"><dt><b>Note:</b></dt><dd>this implicitly writes the extracted data to the <a class="el" href="classIStegIO.html" title="abstraction layer of a steg payload data source and sink">IStegIO</a></dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pSamples</td><td>samples to be modified </td></tr>
    <tr><td class="paramname">pCount</td><td>number of samples </td></tr>
    <tr><td class="paramname">pLeak</td><td>number of samples not used between last and current call </td></tr>
    <tr><td class="paramname">pInBuffer</td><td>how many samples are left in the buffer. If no extra thread is executed for extraction this parameter is always 0.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 for success, &gt;0 for success and discard of samples for next call, &lt;0 for an error </dd></dl>

<p>Reimplemented from <a class="el" href="classCLSBEmbeddingEngine.html#acaebe471ecb2ca61fefa93c623effcee">CLSBEmbeddingEngine</a>.</p>

</div>
</div>
<a class="anchor" id="a64761d9c4036823d4a38e8e054c7acd9"></a><!-- doxytag: member="CRandEmbeddingEngine::extractFromSamples" ref="a64761d9c4036823d4a38e8e054c7acd9" args="(uint8_t *pSamples, unsigned int pCount, unsigned int pLeak, unsigned int pInBuffer)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CRandEmbeddingEngine::extractFromSamples </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>pSamples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pCount</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pLeak</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pInBuffer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented from <a class="el" href="classCLSBEmbeddingEngine.html#a70d5c13e20918537ca5fc41e2b189174">CLSBEmbeddingEngine</a>.</p>

</div>
</div>
<a class="anchor" id="a68c5bc5b00170e6ac949b5fb7b23321d"></a><!-- doxytag: member="CRandEmbeddingEngine::extractFromSamples" ref="a68c5bc5b00170e6ac949b5fb7b23321d" args="(int16_t *pSamples, unsigned int pCount, unsigned int pLeak, unsigned int pInBuffer)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CRandEmbeddingEngine::extractFromSamples </td>
          <td>(</td>
          <td class="paramtype">int16_t *&#160;</td>
          <td class="paramname"><em>pSamples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pCount</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pLeak</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pInBuffer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented from <a class="el" href="classCLSBEmbeddingEngine.html#a08705592c817d8b2854d80752f594a34">CLSBEmbeddingEngine</a>.</p>

</div>
</div>
<a class="anchor" id="af0b434b1ee99a668bf715f3dde97dcbe"></a><!-- doxytag: member="CRandEmbeddingEngine::extractFromSamples" ref="af0b434b1ee99a668bf715f3dde97dcbe" args="(uint16_t *pSamples, unsigned int pCount, unsigned int pLeak, unsigned int pInBuffer)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CRandEmbeddingEngine::extractFromSamples </td>
          <td>(</td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>pSamples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pCount</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pLeak</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pInBuffer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented from <a class="el" href="classCLSBEmbeddingEngine.html#a4c62d1ed64e8acb27781d7765e4fa0eb">CLSBEmbeddingEngine</a>.</p>

</div>
</div>
<a class="anchor" id="a96e54e0cb255a0cc5715ad7199256c76"></a><!-- doxytag: member="CRandEmbeddingEngine::getIniSectionName" ref="a96e54e0cb255a0cc5715ad7199256c76" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string CRandEmbeddingEngine::getIniSectionName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>get the abbreviation for the properties reader </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the abbreviation for the properties reader </dd></dl>

<p>Reimplemented from <a class="el" href="classCLSBEmbeddingEngine.html#a81bd5d82390a7870fefbfdde94cd474b">CLSBEmbeddingEngine</a>.</p>

</div>
</div>
<a class="anchor" id="ac4b667ad17352731894fc8b5080c7750"></a><!-- doxytag: member="CRandEmbeddingEngine::initPrng" ref="ac4b667ad17352731894fc8b5080c7750" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CRandEmbeddingEngine::initPrng </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a587fe0bad241ff43d92acab118def69d"></a><!-- doxytag: member="CRandEmbeddingEngine::operator=" ref="a587fe0bad241ff43d92acab118def69d" args="(const CRandEmbeddingEngine &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCRandEmbeddingEngine.html">CRandEmbeddingEngine</a>&amp; CRandEmbeddingEngine::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCRandEmbeddingEngine.html">CRandEmbeddingEngine</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="af4b485d99db56b398b850caa2eefab41"></a><!-- doxytag: member="CRandEmbeddingEngine::sampleToProcess" ref="af4b485d99db56b398b850caa2eefab41" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool CRandEmbeddingEngine::sampleToProcess </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="af863b5d117e3ad554d714e24892e33e0"></a><!-- doxytag: member="CRandEmbeddingEngine::setProperties" ref="af863b5d117e3ad554d714e24892e33e0" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool CRandEmbeddingEngine::setProperties </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="ab09f2cfec754c8d413cc8721e4d7a97a"></a><!-- doxytag: member="CRandEmbeddingEngine::mEmbeddingEngine" ref="ab09f2cfec754c8d413cc8721e4d7a97a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCLSBEmbeddingEngine.html">CLSBEmbeddingEngine</a>* <a class="el" href="classCRandEmbeddingEngine.html#ab09f2cfec754c8d413cc8721e4d7a97a">CRandEmbeddingEngine::mEmbeddingEngine</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>the actual lsb embedding engine which does the embedding work</p>
<dl class="note"><dt><b>Note:</b></dt><dd>this object is eventually called in embedIntoSample() and extractFromSample(), after the prng stuff is done </dd></dl>

</div>
</div>
<a class="anchor" id="a9b6328e97066c6848dbe8d82b53ea0b2"></a><!-- doxytag: member="CRandEmbeddingEngine::mIncrement" ref="a9b6328e97066c6848dbe8d82b53ea0b2" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="classCRandEmbeddingEngine.html#a9b6328e97066c6848dbe8d82b53ea0b2">CRandEmbeddingEngine::mIncrement</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aed96142234beb18c5d871c663549697d"></a><!-- doxytag: member="CRandEmbeddingEngine::mModulo" ref="aed96142234beb18c5d871c663549697d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="classCRandEmbeddingEngine.html#aed96142234beb18c5d871c663549697d">CRandEmbeddingEngine::mModulo</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aaa953369788426b87458f9da4ae4d088"></a><!-- doxytag: member="CRandEmbeddingEngine::mMultiplier" ref="aaa953369788426b87458f9da4ae4d088" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="classCRandEmbeddingEngine.html#aaa953369788426b87458f9da4ae4d088">CRandEmbeddingEngine::mMultiplier</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a56f7c37c06f97bdad61a24b2a45b5651"></a><!-- doxytag: member="CRandEmbeddingEngine::mRandom" ref="a56f7c37c06f97bdad61a24b2a45b5651" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCLcg.html">CLcg</a>* <a class="el" href="classCRandEmbeddingEngine.html#a56f7c37c06f97bdad61a24b2a45b5651">CRandEmbeddingEngine::mRandom</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>linear congruential generator (prng) object to get random numbers </p>

</div>
</div>
<a class="anchor" id="a821a6627d59f284960d81514f8e7d686"></a><!-- doxytag: member="CRandEmbeddingEngine::mSeed" ref="a821a6627d59f284960d81514f8e7d686" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="classCRandEmbeddingEngine.html#a821a6627d59f284960d81514f8e7d686">CRandEmbeddingEngine::mSeed</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="afc64519350828e8ab0d31ca4940f302c"></a><!-- doxytag: member="CRandEmbeddingEngine::sIniSectionName" ref="afc64519350828e8ab0d31ca4940f302c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::string <a class="el" href="classCRandEmbeddingEngine.html#afc64519350828e8ab0d31ca4940f302c">CRandEmbeddingEngine::sIniSectionName</a><code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented from <a class="el" href="classCLSBEmbeddingEngine.html#a8d13c922777588ab77c6079a76149f06">CLSBEmbeddingEngine</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="rand__embedding__engine_8h_source.html">rand_embedding_engine.h</a></li>
<li><a class="el" href="rand__embedding__engine_8cxx.html">rand_embedding_engine.cxx</a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 25 2012 22:00:45 for Whisper by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
